$(function (){
    if(error){
    layer.alert(error);
    }



    $("#sub-btn").click(function (){
        console.log("尝试提交");
        let kind_id =$(":input[name = kind_id]").val();
        if(kind_id.trim() === ""){
            layer.msg("顾客编号不可为空");
            return false;
        }
        let name = $(":input[name= name]").val();
        if(name.trim() === ""){
            layer.msg("姓名不可为空");
            return  false;
        }
        console.log("前端校验不错")
        $("#emp-form").submit();
    });
});